STEP 16: If the spaceship collides with an astronaut, let's remove the astronaut from the stage.

  • In GRAPHICS, go to and drop Remove Sprite inside the if statement.
  • Change the variable argument in .remove_sprite() to hit_sprite.

The .remove_sprite() command is indented twice. It should have a green and a yellow block ········

Remember, hit_sprite refers to the sprite that is hit: in this conditional, astro!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)